package GameEngine;


/**
 * This Class represents a Move into the Game
 *
 */
@SuppressWarnings("serial")
public class Move implements java.io.Serializable {

	private boolean black;
	private int row;
	private int column;
	private int element;
	private boolean clockwise;

	/**
	 * The default constructor for a Move requires
         * different attributes that
	 * @param black 
	 * 			if true, if false its red
	 * @param row
	 * 			row of the gameboard
	 * @param column
	 * 			column of the gameboard
	 * @param element
	 * 			represents the quadrand that will be turned
	 * @param clockwise
	 * 			represents the direction in which the quadrand will be turend
	 * 			true = clockwise, false = anti-clockwise
	 */
	public Move(boolean black,
				int row,
				int column,
				int element,
				boolean clockwise){

					this.black = black;
					this.row = row;
					this.column = column;
					this.element = element;
					this.clockwise = clockwise;
				}
	/**
	 * @return row of the gameboard
	 */
	public int row() {
		return row;
	}
	/**
	 * @return column of the gameboard 
	 */
	public int column() {
		return column;
	}
	/**
	 * @return element, so the quadrand that will be turned
	 */
	public int element() {
		return element;
	}
	/**
	 * @return clockwise direction of turning the quadrand
	 */
	public boolean clockwise() {
		return clockwise;
	}
	/**
	 * @return black, so the color of the Player 
	 */
	public boolean black() {
		return black;
	}
        
	/**
	 * @return String, overwrites the toString function 
	 */
	public String toString() {
		return row + ", " + column + ", " + element + ", " + clockwise;
	}
}